import { getLocalStorage} from 'packages/shared/utils/storage'
export type TUser = { 
    username: string,
    email: string,
    avatar: string,
    id: string,
    token: string,
    role: string,
    [x: string]: any 
}
const useUser = ():TUser => { 
    const user: TUser = getLocalStorage('user', true) || {}
    return user
}
export default useUser